package cn.imnaer.service.rest.schedule;

import javax.ws.rs.*;
import javax.ws.rs.core.MediaType;

@Path(value = "/schedule")
public interface ScheduleComponentRestApi {
    @POST
    @Path("/create")
    @Produces("application/json;charset=UTF-8")
    @Consumes(MediaType.MULTIPART_FORM_DATA)
    public String create(String scheduleCreateParamsJson);

    @POST
    @Path("/append")
    @Produces("application/json;charset=UTF-8")
    @Consumes(MediaType.MULTIPART_FORM_DATA)
    public String append(String scheduleAppendParamsJson);

    @POST
    @Path("/update")
    @Produces("application/json;charset=UTF-8")
    @Consumes(MediaType.MULTIPART_FORM_DATA)
    public String updateSchedule(String scheduleJson);

    @GET
    @Path("/getScheduleList/{userId}")
    @Produces("application/json;charset=UTF-8")
    public String getMyScheduleList(@PathParam("userId") String userId, @QueryParam("page") String page);

    @POST
    @Path("/deleteSchedule")
    @Produces("application/json;charset=UTF-8")
    public String deleteSchedule(String jsonData);

    @GET
    @Path("/detail/{scheduleId}")
    @Produces("application/json;charset=UTF-8")
    public String getScheduleDetails(@PathParam("scheduleId") String scheduleId);


}
